require "Common/class"
require "Common/Base/BaseCtrl"
require "View/LoadIngPanel"

LoadIngCtrl = class("LoadIngCtrl",BaseCtrl)

function LoadIngCtrl:Awake(resName)
	self.curPanel = LoadIngPanel.New("LoadIngPanel")
	self.super:Awake(resName,self)
end

function LoadIngCtrl:ShowPanel(data)
	self.super.ShowPanel(self,data)
end

function LoadIngCtrl:InitCtrl()
 	gameMgr:StartLoadMainResource()
end

function LoadIngCtrl:AddUIEvent()	
	
end

function LoadIngCtrl:AddListener()
	
end

function LoadIngCtrl:RemoveListener()
	
end

function LoadIngCtrl:SetTotleUpdate(totle)
	self.totle = totle
end

function LoadIngCtrl:SetProgress(curLoadIdx)
	self.curPanel.loadText.text = "正在努力更新   "..curLoadIdx.."/"..self.totle
	-- if curLoadIdx >= self.totle then
	-- 	-- ClosePanel()
	-- end
end